<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>弹性布局</title>
</head>
<body>
    <style>
        .parent {
            width:100%;
            height: 200px;
            background-color: aqua;
            /* 规定子元素弹性布局，块级元素水平方向进行布局 */
            display: flex;
            /* 水平方向布局，子元素放在父元素左边，右边，居中，分散布局，分散布局但是左右两边也有等分间隔 */
            /* justify-content: start; 
            justify-content: end;
            justify-content: center;
            justify-content: space-between; */
            justify-content: space-around;
            /* 垂直方向布局，start(上)，end(下)，center(居中) */
            align-items: center;
        }

        .one{
            width: 50px;
            height: 100px;
            background-color: red;
        }

    </style>

    <div class="parent">
        <div class="one">1</div>
        <div class="one">2</div>
        <div class="one">3</div>
        <div class="one">3</div>
        <div class="one">3</div>
    </div>
</body>
</html>